<?php
  include("../admin-security.php");
  include("../inc/functions.php");
  include("../inc/db.class.php");
  include("../inc/connection.php");
  $order = safe_request_null("order");
  $name = safe_request_null("name");
  $title = safe_request_null("banner-title");
  $path = safe_request_null("image-path");
  $show = $_REQUEST['show'];

  if(isset($_REQUEST['b_id']) && ($_REQUEST['b_id']!='')){
    $b_id = safe_request_null("b_id");
    $insert_banner = "update kunuki.banner set `is_deleted`='1' where `b_id`='$b_id'";
    if(database::query("$insert_banner"))
    header("location: ../profile.php?item=banner&eb=1");
    else
    header("location: ../profile.php?item=banner&eb=0");
  }
  else{
       header("location: ../profile.php?item=banner"); 
  }
?>